package com.synergy.stockflow.procure.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.synergy.stockflow.procure.entity.PurchaseOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.synergy.stockflow.sales.entity.OrderReturns;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface PurchaseOrderService extends IService<PurchaseOrder>{

Page<PurchaseOrder> selectAll(Page<PurchaseOrder> page,
                              String purchaseOrderId,
                              String purchaseOrderName,
                              String purchaseOrderProductionPlanningId,
                              Date purchaseOrderDateOfSigning,
                              Date purchaseOrderDeliveryDate,
                              String purchaseOrderEmployeeId,
                              String purchaseOrderVendorId,
                              String purchaseOrderInboundWarehouse,
                              String purchaseOrderState);
    int deleteIs(String purchaseOrderId);

    PurchaseOrder selectDetails(String purchaseOrderId);

    int updateState(String purchaseOrderId);
}
